package com.test;

import javax.tools.JavaCompiler;
/**
 * 报错先看readme.md
 * @author wanglei
 */
public class Comlier {
    public static void main(String[] args) {
        JavaCompiler systemJavaCompiler = javax.tools.ToolProvider.getSystemJavaCompiler();
        int code = systemJavaCompiler.run(null, null, null, new String[] {"-d","./","G:\\Student.java"});
        System.out.println(code);
    }
}
